<?php
class Admin_Form_UserChangePassword extends Apps_Form {
	public function init() {
		$password = new Zend_Form_Element_Password('password',
					array(
						'label'			=> 'Past Password',
						'required'		=> true,
						'required'		=> true,
						'filters'		=> array('StringTrim')
						)
				);
		$newPassword = new Zend_Form_Element_Password('newPassword',
					array(
						'label'			=> 'New Password',
						'required'		=> true,
						'required'		=> true,
						'filters'		=> array('StringTrim')
						)
				);

		$passwordConfirm = new Zend_Form_Element_Password('passwordConfirm',
					array(
						'label'			=> 'Password again',
						'required'		=> true,
						'filters'		=> array('StringTrim'),
						'validators' 	=> array(array('identical', true, array('newPassword')))
					)
				);

		$this->setLegend('Change Password');
		$this->addElements(
					array(
						$password,
						$newPassword,
						$passwordConfirm,
						)
				);

		$this->addActionGroup();
		$this->makeup();
	}
}